xen.git
20 years agoMerge libxenstat and xentop.
cl349@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 21:54:28 +0000 (21:54 +0000)]
Merge libxenstat and xentop.

20 years agono pae by default
kaf24@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 19:59:58 +0000 (19:59 +0000)]
no pae by default

20 years agoWe cannot allow nested C functions. They create a stack
kaf24@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 19:58:22 +0000 (19:58 +0000)]
We cannot allow nested C functions. They create a stack
trampoline when their address is taken, which causes a
fault if the system implements NX/XD.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoApply Ross Mcilroy's balloon_dealloc_empty_page_range patch
kaf24@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 16:38:13 +0000 (16:38 +0000)]
Apply Ross Mcilroy's balloon_dealloc_empty_page_range patch
and generally clean up the ballon driver a bunch.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 10:21:18 +0000 (10:21 +0000)]
merge?

20 years agoRemove option for running block devices without grant-tables.
cl349@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 10:20:58 +0000 (10:20 +0000)]
Remove option for running block devices without grant-tables.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoNo 'boot error' message if booting secondary vcpu succeeds.
kaf24@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 10:18:14 +0000 (10:18 +0000)]
No 'boot error' message if booting secondary vcpu succeeds.

20 years agoEnsure that 64-bit get_user/put_user only transfer to
kaf24@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 09:52:06 +0000 (09:52 +0000)]
Ensure that 64-bit get_user/put_user only transfer to
a 64-bit local variable. Some gcc versions have bugs
if this restriction isn't observed.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix out-of-source-tree build problem.
kaf24@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 09:43:58 +0000 (09:43 +0000)]
Fix out-of-source-tree build problem.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
20 years agoI noticed that an old problem is back (see below). The time command is
kaf24@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 09:37:27 +0000 (09:37 +0000)]
I noticed that an old problem is back (see below). The time command is
not showing the correct time (it's 3 sec in real time). The patch
attached restores the dropped line at the time of upgrading to 2.6.12.

Jun Nakajima

20 years agoOrdering was broken in the course of separating XEN-overridden
kaf24@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 08:51:04 +0000 (08:51 +0000)]
Ordering was broken in the course of separating XEN-overridden
sources from those getting used through symlink creation.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
20 years agoWhen building in a tree with (the sparse trees and) the patches
kaf24@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 08:36:21 +0000 (08:36 +0000)]
When building in a tree with (the sparse trees and) the patches
stripped, a warning is issued by make, which the below patch
eliminates.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
20 years agoMake grant-table dev_bus_addr really be an address, not a frame
kaf24@firebug.cl.cam.ac.uk [Sun, 21 Aug 2005 17:06:08 +0000 (17:06 +0000)]
Make grant-table dev_bus_addr really be an address, not a frame
number. Also get rid of GNTUNMAP_DEV_FROM_VIRT -- it makes little
sense and noone uses it.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agofix logic of ballooning out to handle the dom0_min_mem parameter correctly
vh249@arcadians.cl.cam.ac.uk [Sun, 21 Aug 2005 16:49:54 +0000 (16:49 +0000)]
fix logic of ballooning out to handle the dom0_min_mem parameter correctly
add an error message when having not enough memory

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agoFix debug build.
kaf24@firebug.cl.cam.ac.uk [Sun, 21 Aug 2005 16:24:23 +0000 (16:24 +0000)]
Fix debug build.

20 years agoRemove dead code from blkback.
akw27@arcadians.cl.cam.ac.uk [Sun, 21 Aug 2005 12:24:21 +0000 (12:24 +0000)]
Remove dead code from blkback.

Signed-off-by: Andrew Warfield <andrew.warfield@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Sun, 21 Aug 2005 11:41:45 +0000 (11:41 +0000)]
merge?

20 years agoFix fallout from "Get rid of memory_t." checkin.
cl349@firebug.cl.cam.ac.uk [Sun, 21 Aug 2005 11:40:39 +0000 (11:40 +0000)]
Fix fallout from "Get rid of memory_t." checkin.
{get,put}_user of u64 items has to use u64 variables.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Sun, 21 Aug 2005 11:02:00 +0000 (11:02 +0000)]
merge?

20 years agoFix dom0 memory allocation.
kaf24@firebug.cl.cam.ac.uk [Sun, 21 Aug 2005 08:14:36 +0000 (08:14 +0000)]
Fix dom0 memory allocation.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoPAE fix to allow dom0 to be >4GB. PAE has made huge progress this week. I now kn
iap10@freefall.cl.cam.ac.uk [Sun, 21 Aug 2005 00:10:30 +0000 (00:10 +0000)]
PAE fix to allow dom0 to be >4GB. PAE has made huge progress this week. I now kn
ow of no PAE specific outstanding issues. Go find some :-)
Signed-off-by: ian@xensource.com
20 years agoFix NORMAL_PT_UPDATE for PAE when page is not pinned.
kaf24@firebug.cl.cam.ac.uk [Sat, 20 Aug 2005 20:05:21 +0000 (20:05 +0000)]
Fix NORMAL_PT_UPDATE for PAE when page is not pinned.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoDefining PAGE_SIZE as int broke x86/64. Revert that change.
kaf24@firebug.cl.cam.ac.uk [Sat, 20 Aug 2005 11:51:50 +0000 (11:51 +0000)]
Defining PAGE_SIZE as int broke x86/64. Revert that change.

20 years agoFix put_pte_flags() for Xen PAE.
kaf24@firebug.cl.cam.ac.uk [Sat, 20 Aug 2005 11:14:28 +0000 (11:14 +0000)]
Fix put_pte_flags() for Xen PAE.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoNot ready for pae by default just yet. ;-)
kaf24@firebug.cl.cam.ac.uk [Sat, 20 Aug 2005 10:03:40 +0000 (10:03 +0000)]
Not ready for pae by default just yet. ;-)

20 years agoFix PAE boot.
kaf24@firebug.cl.cam.ac.uk [Sat, 20 Aug 2005 10:01:20 +0000 (10:01 +0000)]
Fix PAE boot.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoI find at present "make uninstall" won't remove all installed files, for
kaf24@firebug.cl.cam.ac.uk [Sat, 20 Aug 2005 09:38:32 +0000 (09:38 +0000)]
I find at present "make uninstall" won't remove all installed files, for
example: /usr/libexec/xen/xc_restore. This may cause potential unclean
environment.

This patch add more lines in uninstall to remove all installed files by
"make uninstall".

Signed-off-by: Yongkang You <yongkang.you@intel.com>
20 years agoWe need to detect ioemu handled devices earlier and ignore them.
kaf24@firebug.cl.cam.ac.uk [Sat, 20 Aug 2005 09:36:15 +0000 (09:36 +0000)]
We need to detect ioemu handled devices earlier and ignore them.

Testing in blkif.py is too late. The check should be in createDevices.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoMini-os updated to use the new time interface.
kaf24@firebug.cl.cam.ac.uk [Sat, 20 Aug 2005 09:35:38 +0000 (09:35 +0000)]
Mini-os updated to use the new time interface.
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
20 years agoHopefully fix build with SLES9 compiler.
iap10@freefall.cl.cam.ac.uk [Fri, 19 Aug 2005 20:02:01 +0000 (20:02 +0000)]
Hopefully fix build with SLES9 compiler.
Signed-off-by: ian@xensource.com
20 years agoMinor xenstat changes from Christian Limpach.
mark.williamson@cl.cam.ac.uk [Fri, 19 Aug 2005 18:22:56 +0000 (18:22 +0000)]
Minor xenstat changes from Christian Limpach.

20 years agoLocal merge of two headed repo.
sd386@font.cl.cam.ac.uk [Fri, 19 Aug 2005 18:12:48 +0000 (18:12 +0000)]
Local merge of two headed repo.

20 years agoFix broken 'xm sedf', fixed by Ross Mcilroy
sd386@font.cl.cam.ac.uk [Fri, 19 Aug 2005 18:08:29 +0000 (18:08 +0000)]
Fix broken 'xm sedf', fixed by Ross Mcilroy
Signed-off by: Stephan.Diestelhorst@{cl.cam.ac.uk, inf.tu-dresden.de}

20 years agomerge.
kaf24@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 17:57:00 +0000 (17:57 +0000)]
merge.

20 years agoFix x86/64 build by defining correct vcpu_pickle().
kaf24@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 17:56:20 +0000 (17:56 +0000)]
Fix x86/64 build by defining correct vcpu_pickle().

20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 17:54:56 +0000 (17:54 +0000)]
merge?

20 years agoSix the SWIOTLB. The bus range does need to be contiguous after
kaf24@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 17:51:37 +0000 (17:51 +0000)]
Six the SWIOTLB. The bus range does need to be contiguous after
all as a range comparsion is used to determine if a given
dma address is within the swiotlb aperture.

Maybe we can do better sometime in the future (fast address
range comparison yet not require bus-contiguous aperture). But
reverting this morning's patch is fine for now.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 17:38:31 +0000 (17:38 +0000)]
merge?

20 years agoImprove error paths and cleanup code.
cl349@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 17:38:07 +0000 (17:38 +0000)]
Improve error paths and cleanup code.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoGet rid of memory_t. Almost all uses should be unsigned long.
kaf24@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 17:25:04 +0000 (17:25 +0000)]
Get rid of memory_t. Almost all uses should be unsigned long.
The few uses for a physical/machine address have been mostly
changed to u64.

Grant table code probably needs auditing for PAE correctness,
but at least the interface is now sound.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoSimplify pagetable initialisation. Since swapper_pg_dir now
kaf24@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 16:46:51 +0000 (16:46 +0000)]
Simplify pagetable initialisation. Since swapper_pg_dir now
is the one allocated by the domain builder, we can be sure
it is below 4GB (essential for PAE).

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix many uses of machine addresses in XenLinux. Primarily
kaf24@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 16:06:43 +0000 (16:06 +0000)]
Fix many uses of machine addresses in XenLinux. Primarily
this fixes users of virt_to_machine/machine_to_virt to
use virt_to_mfn/mfn_to_virt where that is more appropriate.

This should be a big step to improved PAE stability.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMerge.
sos22@douglas.cl.cam.ac.uk [Fri, 19 Aug 2005 15:47:19 +0000 (15:47 +0000)]
Merge.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
20 years agoThis time, it's fixed.
sos22@douglas.cl.cam.ac.uk [Fri, 19 Aug 2005 15:37:37 +0000 (15:37 +0000)]
This time, it's fixed.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 15:22:05 +0000 (15:22 +0000)]
merge?

20 years agoCorrectly unmap ring page if using grant tables.
cl349@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 15:21:12 +0000 (15:21 +0000)]
Correctly unmap ring page if using grant tables.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoUnbreak the build in the non-CONFIG_SMP and x86_64 cases.
sos22@douglas.cl.cam.ac.uk [Fri, 19 Aug 2005 14:10:24 +0000 (14:10 +0000)]
Unbreak the build in the non-CONFIG_SMP and x86_64 cases.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
20 years agoGet rid of some annoying debug messages.
sos22@douglas.cl.cam.ac.uk [Fri, 19 Aug 2005 13:21:02 +0000 (13:21 +0000)]
Get rid of some annoying debug messages.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
20 years agoMerge.
sos22@douglas.cl.cam.ac.uk [Fri, 19 Aug 2005 13:08:50 +0000 (13:08 +0000)]
Merge.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
20 years agoFix suspend/resume for domains with devices which are in xenstore but have no xenbus...
cl349@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 13:05:31 +0000 (13:05 +0000)]
Fix suspend/resume for domains with devices which are in xenstore but have no xenbus aware driver.
Information about network devices is stored in xenstore.  Xenbus creates
device objects for these devices but the network driver doesn't support
finding devices over xenbus yet and thus these devices have no driver.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 12:22:27 +0000 (12:22 +0000)]
merge?

20 years agoAdd very rough xend support for xenbus block device setup.
cl349@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 12:21:29 +0000 (12:21 +0000)]
Add very rough xend support for xenbus block device setup.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix driver to work with updated probe driver.
cl349@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 12:14:41 +0000 (12:14 +0000)]
Fix driver to work with updated probe driver.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoSwitch block device setup/teardown over to xenbus/xenstore.
cl349@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 12:13:31 +0000 (12:13 +0000)]
Switch block device setup/teardown over to xenbus/xenstore.
Remove device probing support over the device channel.
g/c all the control message code.
Simplify and cleanup internal function calling code (explicit arguments
instead of passing structs around).
Also includes:
Changed "readonly" to "read-only". "backend" is still not hyphenated, but
that seems to be fairly common usage.
Block backends use xenbus_dev_error, making debugging nicer.
The block front end is told explicitly what domid to use to talk to the
backend. There's speculation that fake domid-like tokens may be given
for cluster purposes in future, so deriving from the backend dir name is
not guaranteed to work. Backends still derive front-end ids, using a
xenbus helper (xenbus_uuid_to_domid).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agouse "vbd" as driver name for blkfront devices, not "blkfront".
cl349@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 10:59:47 +0000 (10:59 +0000)]
use "vbd" as driver name for blkfront devices, not "blkfront".
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMerge.
sos22@douglas.cl.cam.ac.uk [Fri, 19 Aug 2005 10:50:15 +0000 (10:50 +0000)]
Merge.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
20 years agoAdd support for multiple devices when using grant tables.
cl349@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 10:47:48 +0000 (10:47 +0000)]
Add support for multiple devices when using grant tables.
Also better support non-transactional store updates.
Also remove some extra printks.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoSwitch block device setup/teardown over to xenbus/xenstore.
cl349@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 10:46:21 +0000 (10:46 +0000)]
Switch block device setup/teardown over to xenbus/xenstore.
Remove device probing support over the device channel.
g/c all the control message code.
Simplify and cleanup internal function calling code (explicit arguments
instead of passing structs around).
Also includes:
Changed "readonly" to "read-only". "backend" is still not hyphenated, but
that seems to be fairly common usage.
Block backends use xenbus_dev_error, making debugging nicer.
The block front end is told explicitly what domid to use to talk to the
backend. There's speculation that fake domid-like tokens may be given
for cluster purposes in future, so deriving from the backend dir name is
not guaranteed to work. Backends still derive front-end ids, using a
xenbus helper (xenbus_uuid_to_domid).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoTidy up a bit.
sos22@douglas.cl.cam.ac.uk [Fri, 19 Aug 2005 10:18:53 +0000 (10:18 +0000)]
Tidy up a bit.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
20 years agoThe entire swiotlb aperture does not need to be contiguous.
kaf24@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 09:42:12 +0000 (09:42 +0000)]
The entire swiotlb aperture does not need to be contiguous.
Only individual aligned SEGSIZE blocks need to be contiguous.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoBy default, pre-reserve some memory in Xen that is not allocated
kaf24@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 09:36:12 +0000 (09:36 +0000)]
By default, pre-reserve some memory in Xen that is not allocated
to domain 0 (1/16th available memory, up to 128MB maximum).
Also, extend dom0_mem boot parameter to accept negative values.
A negative value means "allocate all memory, minus the specified
amount".

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoDefault unit for all Xen memory parameters is kilobytes.
kaf24@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 09:16:56 +0000 (09:16 +0000)]
Default unit for all Xen memory parameters is kilobytes.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoThe patch allows x86_64 SMP Xen/XenLinux (dom0) to run on relatively big
kaf24@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 09:05:04 +0000 (09:05 +0000)]
The patch allows x86_64 SMP Xen/XenLinux (dom0) to run on relatively big
SMP machines.
I tested on an 8-way machine with 8GB. It looks stable as far as I did
sanity checks, such as an infinite loop of "make -j32"; it's very fast!.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
20 years agoThis patch:
kaf24@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 09:03:17 +0000 (09:03 +0000)]
This patch:

* adds a C-based security policy translation tool to Xen (secpol_xml2bin)
and removes the current Java
security policy translator (Java dependencies).  The C-based tool
integrates into the Xen source tree build
and install (using gnome libxml2 for XML parsing). See install.txt.

* introduces security labels and related tools. Users can now use
semantic-rich label names to put security-tags
on domains. See example.txt, policy.txt.

* moves the security configuration (currently ACM_USE_SECURITY_POLICY)
from xen/Rules.mk
into a separate top-level Security.mk file  (it is needed by the
tools/security and xen/acm).

Both xen/acm and tools/security are built during the Xen build process
only if ACM_USE_SECURITY_POLICY
is not ACM_NULL_POLICY (which is the default setting).

Signed-off-by Reiner Sailer <sailer@us.ibm.com>
Signed-off by Stefan Berger <stefanb@us.ibm.com>
Signed-off by Ray Valdez <rvaldez@us.ibm.com>

20 years agoThis patch provides a workaround for bugzilla #90 which shows up far too
kaf24@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 08:55:03 +0000 (08:55 +0000)]
This patch provides a workaround for bugzilla #90 which shows up far too
often when creating and then destroying lots of domUs and dom0 is SMP.
Details are in the [1]bug.  With this patch, I now can create/destroy
domains in a tight loop for hours where previously every 3 to 10 cycles
would blow up.

1. http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=90

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
20 years agoProleptic xend bug fix for multi-sxp messages; stricly more robust than before.
smh22@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 02:41:16 +0000 (02:41 +0000)]
Proleptic xend bug fix for multi-sxp messages; stricly more robust than before.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoRemove support for xenbus driver subtypes since with the subtype field there's no...
cl349@firebug.cl.cam.ac.uk [Thu, 18 Aug 2005 19:51:46 +0000 (19:51 +0000)]
Remove support for xenbus driver subtypes since with the subtype field there's no fallback.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdd support to xenbus_gather to scan for strings and return them in allocated memory.
cl349@firebug.cl.cam.ac.uk [Thu, 18 Aug 2005 19:24:42 +0000 (19:24 +0000)]
Add support to xenbus_gather to scan for strings and return them in allocated memory.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoGet rid of xenbus_uuid_to_domid - get the frontend id from the node.
cl349@firebug.cl.cam.ac.uk [Thu, 18 Aug 2005 19:21:09 +0000 (19:21 +0000)]
Get rid of xenbus_uuid_to_domid - get the frontend id from the node.
We don't want to parse paths we read out of the store to _construct_
other paths and tie down the store layout for no good reason.
Also require the frontend path to exist and be valid before creating
the device.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoLet dev_changed detect devices when a watch fires with a longer node name.
cl349@firebug.cl.cam.ac.uk [Thu, 18 Aug 2005 19:15:22 +0000 (19:15 +0000)]
Let dev_changed detect devices when a watch fires with a longer node name.
Also improve device cleanup when the dir for a while frontend domain
is removed.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFree memory returned from xenbus_directory call.
cl349@firebug.cl.cam.ac.uk [Thu, 18 Aug 2005 19:08:09 +0000 (19:08 +0000)]
Free memory returned from xenbus_directory call.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoDon't free subtype field unconditionally.
cl349@firebug.cl.cam.ac.uk [Thu, 18 Aug 2005 19:07:29 +0000 (19:07 +0000)]
Don't free subtype field unconditionally.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoGet device when we find it - fixes refcount leak and is correct.
cl349@firebug.cl.cam.ac.uk [Thu, 18 Aug 2005 19:06:51 +0000 (19:06 +0000)]
Get device when we find it - fixes refcount leak and is correct.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoCreate devices for the xenbus-bus's.
cl349@firebug.cl.cam.ac.uk [Thu, 18 Aug 2005 19:04:47 +0000 (19:04 +0000)]
Create devices for the xenbus-bus's.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoRename bus names from xenbus* to xen*.
cl349@firebug.cl.cam.ac.uk [Thu, 18 Aug 2005 19:01:09 +0000 (19:01 +0000)]
Rename bus names from xenbus* to xen*.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMake probe less chatty.
cl349@firebug.cl.cam.ac.uk [Thu, 18 Aug 2005 18:56:47 +0000 (18:56 +0000)]
Make probe less chatty.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Thu, 18 Aug 2005 18:55:13 +0000 (18:55 +0000)]
merge?

20 years agoUpdate probe code for backend layout.
cl349@firebug.cl.cam.ac.uk [Thu, 18 Aug 2005 18:54:38 +0000 (18:54 +0000)]
Update probe code for backend layout.
Backend directories are of form backend/<type>/<frontend-uuid>/<id>.
This extra level makes an asymmetry with front ends (device/type/id) and
are too long to make nice bus-ids under Linux, but the code isn't too
horrible, and an OS which only wants to be a guest doesn't need to implement
it. It allows backends to calculate the front-end path directly, which
is a nice benefit.
Also: subtype matching is tightened: they must match exactly. That way a future
variant which requires a specific driver will not match current drivers.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMake sure to cmpxchg entire pte on emulated ptwr path.
kaf24@firebug.cl.cam.ac.uk [Thu, 18 Aug 2005 18:17:08 +0000 (18:17 +0000)]
Make sure to cmpxchg entire pte on emulated ptwr path.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix emulated writable pagetable updates where access is
kaf24@firebug.cl.cam.ac.uk [Thu, 18 Aug 2005 18:02:46 +0000 (18:02 +0000)]
Fix emulated writable pagetable updates where access is
less than a full pte and operation requires cmpxchg.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix direct_remap_area_pages() to handle pagetables
kaf24@firebug.cl.cam.ac.uk [Thu, 18 Aug 2005 17:46:26 +0000 (17:46 +0000)]
Fix direct_remap_area_pages() to handle pagetables
above 4GB.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix __get_user() and friends to work correctly for
kaf24@firebug.cl.cam.ac.uk [Thu, 18 Aug 2005 17:04:48 +0000 (17:04 +0000)]
Fix __get_user() and friends to work correctly for
64-bit quantities on x86/32. Should fix writable
pagetables on PAE.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoA really nasty workaround for a race.
sos22@douglas.cl.cam.ac.uk [Thu, 18 Aug 2005 16:28:41 +0000 (16:28 +0000)]
A really nasty workaround for a race.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
20 years agoClean up bootmem initialisation for x86/64. Question still
kaf24@firebug.cl.cam.ac.uk [Thu, 18 Aug 2005 16:04:00 +0000 (16:04 +0000)]
Clean up bootmem initialisation for x86/64. Question still
remains over why boot fails if we try to free up the bottom
1MB of pseudophysical memory...

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoActually make suspending SMP domUs work: the previous commit didn't
sos22@douglas.cl.cam.ac.uk [Thu, 18 Aug 2005 15:27:55 +0000 (15:27 +0000)]
Actually make suspending SMP domUs work: the previous commit didn't
bring the other vcpus up correctly.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
20 years agoFix Xen patches to Linux so that they use pfn_pte() and
kaf24@firebug.cl.cam.ac.uk [Thu, 18 Aug 2005 15:01:03 +0000 (15:01 +0000)]
Fix Xen patches to Linux so that they use pfn_pte() and
pfn_pte_ma() constructors, rather than splicing together
ptes manually. Not only is this cleaner, it also ensures
that the NX/XD bit is safely masked off on systems that do
not support it.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoTiny formatting tweak in addition to previous changeset.
kaf24@firebug.cl.cam.ac.uk [Thu, 18 Aug 2005 14:33:21 +0000 (14:33 +0000)]
Tiny formatting tweak in addition to previous changeset.

20 years agoClean up formatting of Xen crash messages.
kaf24@firebug.cl.cam.ac.uk [Thu, 18 Aug 2005 14:26:36 +0000 (14:26 +0000)]
Clean up formatting of Xen crash messages.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAdd SK98LIN driver to default -xen0 Linux configs.
iap10@freefall.cl.cam.ac.uk [Thu, 18 Aug 2005 14:18:15 +0000 (14:18 +0000)]
Add SK98LIN driver to default -xen0 Linux configs.
Signed-off-by: ian@xensource.com
20 years agoMake antispoof default to 'no' in network-script as the default in xend is 'no'....
iap10@freefall.cl.cam.ac.uk [Thu, 18 Aug 2005 14:17:22 +0000 (14:17 +0000)]
Make antispoof default to 'no' in network-script as the default in xend is 'no'. Having them different only causes confusion.

Signed-off-by: ian@xensoure.com
20 years agofail nicely when passing unknown option to xm list
vh249@arcadians.cl.cam.ac.uk [Thu, 18 Aug 2005 11:45:54 +0000 (11:45 +0000)]
fail nicely when passing unknown option to xm list

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agoFix range_straddles_boundary() check to exclude regions that
kaf24@firebug.cl.cam.ac.uk [Thu, 18 Aug 2005 10:41:55 +0000 (10:41 +0000)]
Fix range_straddles_boundary() check to exclude regions that
were allocated with xen_create_contiguous_region(). Such areas
do not require bounce buffers (swiotlb).

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoEnable IP_PNP support in 64bit domU (needed for xm ip= etc.)
jrb44@plym.cl.cam.ac.uk [Thu, 18 Aug 2005 10:22:08 +0000 (10:22 +0000)]
Enable IP_PNP support in 64bit domU (needed for xm ip= etc.)

Signed-off-by: James Bulpin <james@xensource.com>
20 years agoFix the SWIOTLB to correctly match on bus addresses.
kaf24@firebug.cl.cam.ac.uk [Thu, 18 Aug 2005 09:47:04 +0000 (09:47 +0000)]
Fix the SWIOTLB to correctly match on bus addresses.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agofail domU creation if memory need couldn't be succeed after ballooning out dom0
vh249@arcadians.cl.cam.ac.uk [Thu, 18 Aug 2005 01:13:49 +0000 (01:13 +0000)]
fail domU creation if memory need couldn't be succeed after ballooning out dom0

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agoEnable MATCH_PHYSDEV netfilter support as a module.
iap10@freefall.cl.cam.ac.uk [Wed, 17 Aug 2005 23:11:56 +0000 (23:11 +0000)]
Enable MATCH_PHYSDEV netfilter support as a module.
Signed-off-by: iab@xensource.com
20 years agoFix e820 array stack overflow
iap10@freefall.cl.cam.ac.uk [Wed, 17 Aug 2005 22:01:24 +0000 (22:01 +0000)]
Fix e820 array stack overflow
I don't see the problem on machine that I typically use, but I found and
fixed the problem on a big machine. It was causing a stack overflow. If
you look at the current code, it's a bit dangerous, see => part. This
patch fixes it.
From: "Nakajima, Jun" <jun.nakajima@intel.com>
Signed-off-by: ian@xensource.com
20 years agoWe found machines with >32 E820 memory map entries, where Xen fails to
kaf24@firebug.cl.cam.ac.uk [Wed, 17 Aug 2005 18:22:18 +0000 (18:22 +0000)]
We found machines with >32 E820 memory map entries, where Xen fails to
boot (but Linux does boot fine). The native Linux (both x86 and x86_86)
already has:

#define E820MAX 128             /* number of entries in E820MAP */

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
20 years agoFix vmalloc_fault() path for x86/64 XenLinux.
kaf24@firebug.cl.cam.ac.uk [Wed, 17 Aug 2005 18:14:46 +0000 (18:14 +0000)]
Fix vmalloc_fault() path for x86/64 XenLinux.
There may be a deeper underlying problem w.r.t pagetable
initialisation at start of day, but this simple fix is
a good workaround until we have time to investigate
properly.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix the skbuff allocator for multi-page buffers.
kaf24@firebug.cl.cam.ac.uk [Wed, 17 Aug 2005 16:53:30 +0000 (16:53 +0000)]
Fix the skbuff allocator for multi-page buffers.
pci-dma.c still needs fixing to recognise contiguous
multi-page buffers.
Signed-off-by: Keir Fraser <keir@xensource.com>